<%@ page language="java" import="java.util.*,cn.biwysh.exam.entity.User" pageEncoding="utf-8"%>
<%@page import="cn.biwysh.exam.entity.Exam"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
User user = null;
if (session.getAttribute("userqt") != null) {
	user = (User) session.getAttribute("userqt");
}else{
	response.sendRedirect("index.do");
}
Exam exam=new Exam(0,"该考核已被删除",new Date(),new Date(),0,0,0,0,0,0,0);
exam.setAd1name("");
exam.setAd1url("");
exam.setAd2name("");
exam.setAd2url("");
exam.setAd3name("");
exam.setAd3url("");
if(request.getAttribute("exam")!=null){
	exam=(Exam)request.getAttribute("exam");
}
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>当前考核</title>
    <link href="css/qt/dqkh.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="script/jquery/jquery-1.5.1.min.js">
        </script>
    <script type="text/javascript">
	    $(function() {
	        if(!window.ActiveXObject){
	            $("#footht").css("height","20px");
	        }
	        initZYbg();
	         $(window).resize(function() {
			    initZYbg();
			   });
	    });
function initZYbg(){ 
	//alert($(document).width());
       if(document.body.clientWidth<957){
	        $("#mainleft").width(0);
	        $("#mainright").width(0);
	        $("#mainleft").css("display","none");
		    $("#mainright").css("display","none");
        }else{
	       if(!window.ActiveXObject){
		        var wid=($(document).width()-953)/2;
		        $("#mainleft").width(wid);
		        $("#mainright").width(wid);
		        $("#mainleft").css("display","block");
		        $("#mainright").css("display","block");
		    }else{
		        var wid=($(document).width()-974)/2;
		        if(wid>0){
		        	$("#mainleft").width(wid);
			        $("#mainright").width(wid);
			        $("#mainleft").css("display","block");
			        $("#mainright").css("display","block");
		        }
		    }
        }
}
    </script>
  </head>
  
  <body>
    <div id="mainleft"><img src="img/qt/mainleft.jpg" style="width:100%;height:100%;"/></div>
     <div id="main">
      <div id="top">
            <jsp:include page="title.jsp" flush="true">
             <jsp:param name="jspName" value="mykh" />
           </jsp:include>
           <div class="clear"></div>
       </div>
       <div id="tgTXT">
           <div id="tiao" style=""></div>
           <div id="mainbg">
	           <div style="height:37px;"> </div>
	           <div id="nowlist">
	             <table id="nlist" cellpadding="0" cellspacing="0">
	           		 <tr>
	           		   <td>
	           		     <span><%=exam.getName() %></span>
	           		   </td>
	           		   <td style="padding-top: 3px;">
	           		    <%if(!exam.isIsexamed()){%>
	           		    	 <a href="goexam.do?id=<%=exam.getId() %>"><img src="img/qt/dati.jpg"/></a>
	           		     <%}else{%>
	           		    	 <span id="ycj" style="font-size: 12px;">（<font style="color: red;">您已经参加过该考核了</font>）</span>
	           		     <%}%>
	           		   </td>
	           	     </tr>
	             </table>
	           </div>
	           <div style="height:40px;"> </div>
	           <table id="jpshow" cellpadding="0" cellspacing="0">
	           <tr>
	             <td class="shuoming">时间：</td>
	             <td><%=exam.getStarttime().getYear()+1900 %>年<%=exam.getStimestr() %>──<%=exam.getEndtime().getYear()+1900 %>年<%=exam.getEtimestr() %></td>
	           </tr>
	            <tr>
	             <td class="shuoming">要求：</td>
	             <td><%=exam.getLen() %>分钟作答  不可重复提交</td>
	           </tr>
	            <tr>
	             <td class="shuoming">说明：</td>
	             <td>1、考试设一等奖<%=exam.getAd1key() %>名，获得<%=exam.getAd1name() %></td>
	           </tr>
	            <tr>
	             <td class="shuoming"></td>
	             <td>2、考试设二等奖<%=exam.getAd2key() %>名，获得<%=exam.getAd2name() %></td>
	           </tr>
	            <tr>
	             <td class="shuoming"></td>
	             <td>3、考试设三等奖<%=exam.getAd3key() %>名，获得<%=exam.getAd3name() %></td>
	           </tr>
	           </table>
	           <div id="imgshow">
	             <table id="imgshowtb" cellpadding="0" cellspacing="0">
		           <tr>
		             <td>
		               <%if(exam.getAd1url().length()>0) {%>
		                <img src="upload/award/<%=exam.getAd1url() %>"/>
		               <%}else {%>
		                <span></span>
		               <%}%>
		             </td>
		            <td>
		               <%if(exam.getAd2url().length()>0) {%>
		                <img src="upload/award/<%=exam.getAd2url() %>"/>
		               <%}else {%>
		                <span></span>
		               <%}%>
		             </td>
		             <td>
		               <%if(exam.getAd3url().length()>0) {%>
		                <img src="upload/award/<%=exam.getAd3url() %>"/>
		               <%}else {%>
		                <span></span>
		               <%}%>
		             </td>
		           </tr>
		         </table>
		         <a href="mykh.do" style="margin-top: 50px; display:block;width:70px;"><img src="img/qt/fanhui1.jpg" style="border:0px;"/></a>
	           </div>
           </div>
           <div id="mainbottom"></div>
       </div>
      <div id="footht" style=""></div>
      <div id="footer">
		  <jsp:include page="footer.jsp" flush="true"></jsp:include>
	   </div>
     </div>
     <div id="mainright"><img src="img/qt/mainright.jpg" style="width:100%;height:100%;"/></div>
  </body>
</html>
